// String's class method of using

#include <iostream>
#include <cstring>
using namespace std;


// designer
// ------------------------------------------------------------------
// user


int main( void ) { 
	string s1( "hello" );				// Method one
	cout << "s1 : " << s1.c_str( ) << endl;
	cout << "s1 : " << s1 << endl;

	string s2 = s1;					// Method two
	cout << "s2 : " << s2.c_str( ) << endl;
	cout << "s2 : " << s2 << endl;

	string s3;
	cout << "s3 : " << s3.c_str( ) << endl;
	cout << "s3 : " << s3 << endl;

	cout << "After" << endl;

	s3 = s2;					// Method three
	cout << "s3 : " << s3.c_str( ) << endl;
	cout << "s3 : " << s3 << endl;

	string s4 = " hello world ";			// Method four

	string s5;
	s5 = "ni hao"					// Method five


	return 0;
}

